package v1

import (
	"gf_blog_admin/internal/model"
	"github.com/gogf/gf/v2/frame/g"
)

type OptionLogListReq struct {
	g.Meta `path:"/maintain/option_log" method:"get" tags:"maintain" sm:"操作日志列表" can:"maintain.login_log"`
	model.OptionLogListInput
}

type OptionLogListRes struct {
	Total int                        `json:"total"`
	Rows  []*model.OptionLogListItem `json:"rows"`
}

type OptionLogDetailReq struct {
	g.Meta `path:"/maintain/option_log/show/{id}" method:"get" tags:"maintain" sm:"操作日志列表" can:"maintain.login_log.show"`
	Id     uint64 `json:"id" in:"query" v:"required|min:1" dc:"字典项id"`
}

type OptionLogDetailRes struct {
	*model.OptionLogItem
}
